import Vue from 'vue'
import axios from 'axios'

    axios.interceptors.request.use(
        function(config){
            config.headers.authorization = JSON.parse(localStorage.getItem('userData')).token
            return config
            // console.log(config);
        }
    )
    Vue.prototype.$http=axios

export default axios